package top.tangyh.lamp.care.vo.update;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import top.tangyh.basic.base.entity.SuperEntity;
import java.io.Serializable;

/**
 * <p>
 * 表单修改方法VO
 * 病人信息表
 * </p>
 *
 * @author zqb
 * @date 2024-07-12 16:37:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode
@Builder
@Schema(description = "病人信息")
public class BPatientUpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @NotEmpty(message = "请填写姓名")
    @Size(max = 32, message = "姓名长度不能超过{max}")
    private String patientName;
    /**
     * 病人识别号对应his唯一病人编号
     */
    @Schema(description = "病人识别号对应his唯一病人编号")
    @NotEmpty(message = "请填写病人识别号对应his唯一病人编号")
    @Size(max = 64, message = "病人识别号对应his唯一病人编号长度不能超过{max}")
    private String patientIdent;
    /**
     * 病区属性
     */
    @Schema(description = "病区属性")
    @Size(max = 32, message = "病区属性长度不能超过{max}")
    private String wardIdent;
    /**
     * 床号
     */
    @Schema(description = "床号")
    @Size(max = 32, message = "床号长度不能超过{max}")
    private String bedNumber;
    /**
     * 住院号
     */
    @Schema(description = "住院号")
    @Size(max = 32, message = "住院号长度不能超过{max}")
    private String hospitalNumber;
    /**
     * 0其他1男2女
     */
    @Schema(description = "0其他1男2女")
    @NotNull(message = "请填写0其他1男2女")
    private Integer gender;
    /**
     * 年龄
     */
    @Schema(description = "年龄")
    private Integer age;
    /**
     * 血型
     */
    @Schema(description = "血型")
    @Size(max = 8, message = "血型长度不能超过{max}")
    private String bloodType;
    /**
     * 手机号
     */
    @Schema(description = "手机号")
    @Size(max = 16, message = "手机号长度不能超过{max}")
    private String phone;
    /**
     * 地址
     */
    @Schema(description = "地址")
    @Size(max = 255, message = "地址长度不能超过{max}")
    private String address;
    /**
     * 联系人姓名
     */
    @Schema(description = "联系人姓名")
    @Size(max = 32, message = "联系人姓名长度不能超过{max}")
    private String contacts;
    /**
     * 联系人号码
     */
    @Schema(description = "联系人号码")
    @Size(max = 16, message = "联系人号码长度不能超过{max}")
    private String contactsPhone;
    /**
     * 联系人关系
     */
    @Schema(description = "联系人关系")
    @Size(max = 16, message = "联系人关系长度不能超过{max}")
    private String relation;
    /**
     * 当前科室id
     */
    @Schema(description = "当前科室id")
    @Size(max = 32, message = "当前科室id长度不能超过{max}")
    private String deptIdent;
    /**
     * 身份证号
     */
    @Schema(description = "身份证号")
    @Size(max = 64, message = "身份证号长度不能超过{max}")
    private String identCard;
    /**
     * 医保卡号
     */
    @Schema(description = "医保卡号")
    @Size(max = 64, message = "医保卡号长度不能超过{max}")
    private String healthCard;
    /**
     * 是否离院
     */
    @Schema(description = "是否离院")
    @NotNull(message = "请填写是否离院")
    private Integer isLeave;
    /**
     * his是否同步过第一次了
     */
    @Schema(description = "his是否同步过第一次了")
    @NotNull(message = "请填写his是否同步过第一次了")
    private Integer isSync;
    /**
     * 是否转科过
     */
    @Schema(description = "是否转科过")
    @NotNull(message = "请填写是否转科过")
    private Integer isZk;
    /**
     * 是否在科
     */
    @Schema(description = "是否在科")
    @NotNull(message = "请填写是否在科")
    private Integer isZaike;


    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @NotNull(message = "请填写是否删除")
    private Integer isDeleted;
    /**
     * 出生日期
     */
    @Schema(description = "出生日期")
    private LocalDateTime birthday;
    /**
     * 护理等级
     */
    @Schema(description = "护理等级")
    @NotEmpty(message = "请填写护理等级")
    @Size(max = 8, message = "护理等级长度不能超过{max}")
    private String nursingLevel;
    /**
     * 就诊卡号
     */
    @Schema(description = "就诊卡号")
    @Size(max = 64, message = "就诊卡号长度不能超过{max}")
    private String jzkh;
    /**
     * 医保卡号
     */
    @Schema(description = "医保卡号")
    @Size(max = 64, message = "医保卡号长度不能超过{max}")
    private String yiBaoCard;
    /**
     * 电子健康卡号
     */
    @Schema(description = "电子健康卡号")
    @Size(max = 64, message = "电子健康卡号长度不能超过{max}")
    private String dzHealthCard;
    /**
     * 诊断id
     */
    @Schema(description = "诊断id")
    private Long diagnosisId;


}
